
<div ng-controller="DeliverStorageCtrl">
	
<div ng-include="'/templates/paramsSelect.html'"></div>
	<div class="page-heading">
		<ul class="breadcrumb">
			<li><a href="javascript:;">报表管理</a></li>
			<li><a href="javascript:;">配件报表</a></li>
			<li class="active" ng-hide="menuName">维修发料统计(仓库合并)</li>
			<li class="active" ng-show="menuName" ng-bind="menuName"></li>
			<span style="margin-right:10px;"  class="btn btn-danger btn-xs pull-right btn-flag " ng-show="flag" ng-click="delFlag('/parts/deliverstorage/')"><i class="fa fa-times"></i> 删除 </span>
			<span style="margin-right:10px;"  class="btn btn-info btn-xs pull-right btn-flag " ng-click="addFlag('#/parts/deliverstorage/')"><i class="fa fa-star"></i> 收藏 </span>
		
		</ul>
	</div>
	<!-- 页面头部  end-->

	<!--页面内容显示区域-->
	<div class="wrapper">


		<div class="row">
			<div class="col-sm-12">
				<!--表格显示区域-->
				<section class="panel">
					<!--区块头 显示表格名称和功能按钮-->
					<header class="panel-heading">
						维修发料统计查询条件
						<!--控制按钮-->
						<span class="tools pull-right"> <!--收起-->
							<button type="button" class="btn btn-success pull-left" ng-click="SearchData()" 
							style="margin-left: 5px;">
								<i class="fa fa-search"></i> 查询
							</button>
							<button type="button" class="btn btn-info  pull-left" ng-click="ExportData()" 
							style="margin-left: 5px;">
								<i class="fa fa-table"></i> 导出EXCEL
							</button> <a href="javascript:;" class="fa fa-chevron-up form_display"></a>

						</span>
					</header>
					<!--区块body 显示表格内容-->
					<div class="panel-body form-horizontal form_hide">
						<div class="row">
                        	 
                        	<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">事业部</label>
										<div class="col-lg-8 col-sm-7">
										<input type="text" id="group_name" ng-keyup="clearGroup()"  name="group_name"   class="form-control select_edit form_params" />
                                            <ul class="select_list">
                                                  <li ng-repeat="e in groups" ng-click='LoadBrands(e.group_name)' val_code="{{e.group_name}}" val_name="{{e.group_name}}">{{e.group_name}}</li>
                                            </ul>  
                                            </div>
								</div>
							</div>
							
							<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">店面品牌</label>
									<div class="col-lg-8 col-sm-7">
										<input type="text" id="entity_brand_name"  ng-keyup="clearGroupBrand()"  name="entity_brand_name" class="form-control select_edit form_params" value=""/>
                                            <ul class="select_list">
                                                  <li ng-repeat="e in gBrands" ng-click='LoadEntitys(e)' val_code="{{e.brand_code}}" val_name="{{e.brand_name}}">{{e.brand_name}}</li>
                                            </ul> 
									</div>
								</div>
							</div>
							
							
							<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label" for="inputEmail1">店面信息</label>
									<div class="col-lg-8 col-sm-7">
											<input type="text" id="entity_name" ng-keyup="clearGroupBrandEntity()"  name="entity_name" class="form-control select_edit form_params" value=""/>
											<input type="hidden" id="entity_code" name="entity_code"  class="form-control select_value form_params" value="{{e.entity_code}}"/>
                                            <ul class="select_list">
                                                  <li ng-repeat="e in entitys" ng-click='LoadEntityLevel(e)' val_code="{{e.entity_code}}" val_name="{{e.entity_name}}">{{e.entity_name}}({{e.entity_code}})</li>
                                            </ul> 
									</div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">仓库</label>
									<div class="col-lg-8 col-sm-7">
										<select name="storage_code" class="form-control form_params">
											<option></option>
											<option  ng-repeat="b in storage_list" value="{{b.storage_code}}">{{b.storage_name}}</option>
										</select>
									</div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">配件代码</label>
									<div class="col-lg-8 col-sm-7">
										<input name="part_no" type="text" class="form-control form_params">
									</div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">发料时间</label>
									<div class="col-lg-8 col-sm-7">
										<div data-date-format="yyyy-mm-dd" data-date="2016-5-15" class="input-large custom-date-range ">
											<input type="text" name="send_date1" class="form-control form_params" id="send_date1" onFocus="WdatePicker({maxDate:'#F{$dp.$D(\'send_date2\')||\'2020-10-01\'}'})">
										</div>
									</div>
								</div>
							</div>
                            
                            <div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label text-center" for="inputEmail1">至</label>
									<div class="col-lg-8 col-sm-7">
										<div data-date-format="yyyy-mm-dd" data-date="2016-5-15" class="input-large custom-date-range">
											 <input type="text" name="send_date2" class="form-control form_params" id="send_date2" onFocus="WdatePicker({minDate:'#F{$dp.$D(\'send_date1\')}',maxDate:'2020-10-01'})">
										</div>
									</div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="sold_by">服务专员</label>
									<div class="col-lg-8 col-sm-7">
										<input type="text" name="service_advisor_name" id="service_advisor_name" class="form-control select_edit form_params" value=""/>
                                        <ul class="select_list">
                                              <li ng-repeat="b in servicer" val_code="{{b.code}}" val_name="{{b.name}}">{{b.name}}</li>
                                        </ul>  
									</div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">配件名称</label>
									<div class="col-lg-8 col-sm-7">
										<input name="part_name" type="text" class="form-control form_params">
									</div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="sold_by">收费区分</label>
									<div class="col-lg-8 col-sm-7">
										 <select name="charge_partition_code" id="charge_partition_code" multiple="multiple" class="form-control form_params">
										 </select>
									</div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">九大类</label>
									<div class="col-lg-8 col-sm-7">
										<select name="part_main_name" class="form-control form_params">
											<option></option>
											<option ng-repeat="b in partmain_list" value="{{b.status_desc}}">{{b.status_desc}}</option>
										</select>
									</div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">工单状态</label>
									<div class="col-lg-8 col-sm-7">
										<select name="ro_status_name" class="form-control form_params">
											<option></option>
											<option  ng-repeat="b in ro_status" value="{{b.status_desc}}">{{b.status_desc}}</option>
										</select>
										
									</div>
								</div>
							</div>
							
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="sold_by">领料人</label>
									<div class="col-lg-8 col-sm-7">
										<input type="text" name="receiverer" id="receiverer" class="form-control select_edit form_params" value=""/>
                                        <ul class="select_list">
                                              <li ng-repeat="b in receiver" val_code="{{b.code}}" val_name="{{b.name}}">{{b.name}}</li>
                                        </ul>  
									</div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="sold_by">发料人</label>
									<div class="col-lg-8 col-sm-7">
										<input type="text" name="senderer" id="senderer" class="form-control select_edit form_params" value=""/>
                                        <ul class="select_list">
                                              <li ng-repeat="b in sender" val_code="{{b.code}}" val_name="{{b.name}}">{{b.name}}</li>
                                        </ul>  
									</div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">工单号</label>
									<div class="col-lg-8 col-sm-7">
										<input name="ro_no" class="form-control form_params">
									</div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">车牌号</label>
									<div class="col-lg-8 col-sm-7">
										<input name="license" class="form-control form_params">
									</div>
								</div>
							</div>
							
							<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">配件类别</label>
									<div class="col-lg-8 col-sm-7">
										<select name="part_group_name"  class="form-control form_params">
											<option></option>
											<option ng-repeat="b in part_type" value="{{b.status_desc}}">{{b.status_desc}}</option>
										</select>
									</div>
								</div>
							</div>
							
							<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">是否结清</label>
									<div class="col-lg-8 col-sm-7">
										<select name="is_square"  class="form-control form_params">
											<option></option>
											<option ng-repeat="b in is_square" value="{{b.status_code}}">{{b.status_desc}}</option>
										</select>
									</div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">结算日期</label>
									<div class="col-lg-8 col-sm-7">
										<div data-date-format="yyyy-mm-dd" data-date="2016-5-15" class="input-large custom-date-range ">
											<input type="text" name="balance_date1" class="form-control form_params" id="balance_date1" onFocus="WdatePicker({maxDate:'#F{$dp.$D(\'balance_date2\')||\'2020-10-01\'}'})">
										</div>
									</div>
								</div>
							</div>
                            
                            <div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label text-center" for="inputEmail1">至</label>
									<div class="col-lg-8 col-sm-7">
										<div data-date-format="yyyy-mm-dd" data-date="2016-5-15" class="input-large custom-date-range">
											 <input type="text" name="balance_date2" class="form-control form_params" id="balance_date2" onFocus="WdatePicker({minDate:'#F{$dp.$D(\'balance_date1\')}',maxDate:'2020-10-01'})">
										</div>
									</div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">结清日期</label>
									<div class="col-lg-8 col-sm-7">
										<div data-date-format="yyyy-mm-dd" data-date="2016-5-15" class="input-large custom-date-range ">
											<input type="text" name="square_date1" class="form-control form_params" id="square_date1" onFocus="WdatePicker({maxDate:'#F{$dp.$D(\'square_date2\')||\'2020-10-01\'}'})">
										</div>
									</div>
								</div>
							</div>
                            
                            <div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label text-center" for="inputEmail1">至</label>
									<div class="col-lg-8 col-sm-7">
										<div data-date-format="yyyy-mm-dd" data-date="2016-5-15" class="input-large custom-date-range">
											 <input type="text" name="square_date2" class="form-control form_params" id="square_date2" onFocus="WdatePicker({minDate:'#F{$dp.$D(\'square_date1\')}',maxDate:'2020-10-01'})">
										</div>
									</div>
								</div>
							</div>
							
							<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">结算关单</label>
									<div class="col-lg-8 col-sm-7">
										<select name="is_colse"  class="form-control form_params" ng-model="close_isnot" ng-change="ctrlDisabled(close_isnot)">
											<option></option>
											<option ng-repeat="b in is_colse" value="{{b.status_code}}">{{b.status_desc}}</option>
										</select>
									</div>
								</div>
							</div>
							
							<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">其他</label>
									<div class="col-lg-8 col-sm-7">
										 <select name="part_other" id="part_other" multiple="multiple" class="form-control form_params">
										 </select>
									</div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">关单日期</label>
									<div class="col-lg-8 col-sm-7">
										<div data-date-format="yyyy-mm-dd" data-date="2016-5-15" class="input-large custom-date-range ">
											<input type="text" name="close_date1" disabled class="form-control form_params" id="close_date1" onFocus="WdatePicker({maxDate:'#F{$dp.$D(\'close_date2\')||\'2020-10-01\'}'})">
										</div>
									</div>
								</div>
							</div>
                            
                            <div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label text-center" for="inputEmail1">至</label>
									<div class="col-lg-8 col-sm-7">
										<div data-date-format="yyyy-mm-dd" data-date="2016-5-15" class="input-large custom-date-range">
											 <input type="text" name="close_date2" disabled class="form-control form_params" id="close_date2" onFocus="WdatePicker({minDate:'#F{$dp.$D(\'close_date1\')}',maxDate:'2020-10-01'})">
										</div>
									</div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">一级分类</label>
									<div class="col-lg-8 col-sm-7">
                                            <select name="main_group_name" class="form-control form_params" ng-model="mainGroupName"  ng-change="loadSecond(mainGroupName)" >
												<option></option>
												<option   ng-repeat="b in main_list" value="{{b.name}}" val_code="{{b.code}}">{{b.name}}</option>
										    </select>
                                    </div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">二级分类</label>
									<div class="col-lg-8 col-sm-7">
                                            <select name="sub_group_name" class="form-control form_params" ng-model="subGroupName"  ng-change="loadThird(subGroupName)" >
												<option></option>
												<option   ng-repeat="b in sub_list_sel" value="{{b.name}}" val_code="{{b.code}}">{{b.name}}</option>
										    </select>
                                    </div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">三级分类</label>
									<div class="col-lg-8 col-sm-7">
									       <select name="third_group_name" class="form-control form_params" ng-model="thirdGroupName" ng-change="loadFourth(thirdGroupName)" >
												<option></option>
												<option   ng-repeat="b in third_list_sel" value="{{b.name}}">{{b.name}}</option>
										    </select>
									</div>
								</div>
							</div>
							
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">四级分类</label>
									<div class="col-lg-8 col-sm-7">
										    <select name="fourth_group_name" class="form-control form_params" >
										 		<option></option>
												<option  ng-repeat="b in fourth_list_sel" value="{{b.name}}">{{b.name}}</option>
										    </select>
									</div>
								</div>
							</div>
							
							<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">工单类别</label>
									<div class="col-lg-8 col-sm-7">
										<select name="ro_type_code" id="ro_type_code" multiple="multiple" class="form-control form_params">
										 </select>
									</div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">维修类型</label>
									<div class="col-lg-8 col-sm-7">
									     <select name="repair_type_code" id="repair_type_code" multiple="multiple" class="form-control form_params">
										 </select>
									</div>
								</div>
							</div>
							
							<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">车型组</label>
									<div class="col-lg-8 col-sm-7">
										<input type="text" name="part_model_group_code_set" id="part_model_group_code_set" class="form-control select_edit form_params" value=""/>
                                        <ul class="select_list" style="width:50px;" >
                                              <li ng-repeat="b in model_group" title=" {{b.part_model_group_name}}" val_code="{{b.part_model_group_code}}" val_name="{{b.part_model_group_code}} | {{b.part_model_group_name}}">{{(b.part_model_group_name == '其他') ?'':b.part_model_group_code +' | '}} {{b.part_model_group_name}}</li>
                                        </ul> 
									</div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">备注</label>
									<div class="col-lg-8 col-sm-7">
										<input name="remark" class="form-control form_params">
									</div>
								</div>
							</div>
							
						</div>
					</div>
				</section>
				
						<section class="panel">
							<!--区块头 显示表格名称和功能按钮-->
							<header class="panel-heading">
								维修发料统计报表(仓库合并)
								<headshow></headshow>
								<div class="option_check_list" style="display: inline-block;"></div>
		
								<!--控制按钮-->
								<span class="tools pull-right"> <!--收起--> <a
									href="javascript:;" class="fa fa-chevron-down"></a>
								</span>
							</header>
							<!--区块body 显示表格内容-->
							<div class="panel-body form-horizontal ">
		
								<div class="adv-table" style="overflow-x: scroll">
									<table id="deliverTable"
										class="table table-striped  nowrap  dataTable no-footer table_store table-hover float_head"
										cellspacing="0" width="100%">
										<thead>
											<tr>
												<th ng-show="!cols.contains('index')" column="index">序号</th>
												<th ng-show="!cols.contains('entity_code')" column="entity_code">店面编号</th>
												<th ng-show="!cols.contains('entity_name')" column="entity_name">店面名称</th>
												<th ng-show="!cols.contains('entity_brand_name')" column="entity_brand_name">店面品牌</th>
												<th ng-show="!cols.contains('group_name')" column="group_name">事业部</th>
												<th ng-show="!cols.contains('storage_name')" column="storage_name">仓库</th>
												<th ng-show="!cols.contains('storage_position_code')" column="storage_position_code">库位代码</th>
												<th ng-show="!cols.contains('part_no')" column="part_no">配件代码</th>
												<th ng-show="!cols.contains('part_name')" column="part_name">配件名称</th>
												<th ng-show="!cols.contains('sub_group_name')" column="sub_group_name">二级类别</th>
												<th ng-show="!cols.contains('third_group_name')" column="third_group_name">三级类别</th>
												<th ng-show="!cols.contains('fourth_group_name')" column="fourth_group_name">四级类别</th>
												<th ng-show="!cols.contains('brand_name')" column=brand_name>品牌</th>
												<th ng-show="!cols.contains('series_name')" column="series_name">车系</th>
												<th ng-show="!cols.contains('model_name')" column="model_name">车型</th>
												<th qtype='float' ng-show="!cols.contains('mileage')" column="mileage">行驶里程</th>
												<th ng-show="!cols.contains('part_group_name')" column="part_group_name">配件类别</th>
												<th qtype="bool" ng-show="!cols.contains('add_tag')" column="add_tag">二次增项</th>
												<th qtype='date' ng-show="!cols.contains('last_stock_in')" column="last_stock_in">最新入库日期</th>
												<th qtype='float' ng-show="!cols.contains('part_quantity')" column="part_quantity">配件数量</th>
												<th qtype='float' ng-show="!cols.contains('stock_quantity')" column="stock_quantity">库存数量</th>
												<th qtype='float' ng-show="!cols.contains('part_cost_price')" column="part_cost_price">配件成本单价</th>
												<th qtype='float' ng-show="!cols.contains('part_cost_amount')" column="part_cost_amount">配件成本金额</th>
												<th qtype='float' ng-show="!cols.contains('part_sales_price')" column="part_sales_price">配件销售单价</th>
												<th qtype='float' ng-show="!cols.contains('part_sales_amount')" column="part_sales_amount">配件销售金额</th>
												<th qtype='float' ng-show="!cols.contains('non_tax_amount')" column="non_tax_amount">不含税差价</th>
												<th qtype='float' ng-show="!cols.contains('maoli')" column="maoli">毛利</th>
												<th ng-show="!cols.contains('part_main_name')" column="part_main_name">九大类</th>
												<th ng-show="!cols.contains('part_model_group_name')" column="part_model_group_name">配件车型组集</th>
												<th ng-show="!cols.contains('ro_status_name')" column="ro_status_name">工单状态</th>
												<th ng-show="!cols.contains('ro_type_name')" column="ro_type_name">工单类型</th>
												<th qtype="float" ng-show="!cols.contains('profit')" column="profit">毛利率</th>
												<th ng-show="!cols.contains('remark')" column="remark">备注</th>
											</tr>
										</thead>
										<tbody>
											<tr ng-repeat="c in datas">
												<td ng-show="!cols.contains('index')" class="">{{$index + 1 }}</td>
												<td ng-show="!cols.contains('entity_code')" class="">{{c.entity_code}}</td>
												<td ng-show="!cols.contains('entity_name')" class="">{{c.entity_name}}</td>
												<td ng-show="!cols.contains('entity_brand_name')" class="">{{c.entity_brand_name}}</td>
												<td ng-show="!cols.contains('group_name')" class="">{{c.group_name}}</td>
												<td ng-show="!cols.contains('storage_name')" class="">{{c.storage_name}}</td>
												<td ng-show="!cols.contains('storage_position_code')" class="">{{c.storage_position_code}}</td>
												<td ng-show="!cols.contains('part_no')" class="">{{c.part_no}}</td>
												<td ng-show="!cols.contains('part_name')" class="">{{c.part_name}}</td>
												<td ng-show="!cols.contains('sub_group_name')" class="">{{c.sub_group_name}}</td>
												<td ng-show="!cols.contains('third_group_name')" class="">{{c.third_group_name}}</td>
												<td ng-show="!cols.contains('fourth_group_name')" class="">{{c.fourth_group_name}}</td>
												<td ng-show="!cols.contains('brand_name')" class="">{{c.brand_name}}</td>
												<td ng-show="!cols.contains('series_name')" class="">{{c.series_name}}</td>
												<td ng-show="!cols.contains('model_name')" class="">{{c.model_name}}</td>
												<td ng-show="!cols.contains('mileage')" class="">{{c.mileage | number:2}}</td>
												<td ng-show="!cols.contains('part_group_name')" class="">{{c.part_group_name}}</td>
												<td ng-show="!cols.contains('add_tag')" class="">{{c.add_tag == null?"":(c.add_tag=='12781001'?'是':'否')}}</td>
												<td ng-show="!cols.contains('last_stock_in')" class="">{{c.last_stock_in | date:'yyyy-MM-dd HH:mm:ss'}}</td>
												<td ng-show="!cols.contains('part_quantity')" class="">{{c.part_quantity | number:2}}</td>
												<td ng-show="!cols.contains('stock_quantity')" class="">{{c.stock_quantity | number:2}}</td>
												<td ng-show="!cols.contains('part_cost_price')" class="">{{c.part_cost_price | number:4}}</td>
												<td ng-show="!cols.contains('part_cost_amount')" class="">{{c.part_cost_amount | number:2}}</td>
												<td ng-show="!cols.contains('part_sales_price')" class="">{{c.part_sales_price | number:2}}</td>
												<td ng-show="!cols.contains('part_sales_amount')" class="">{{c.part_sales_amount | number:2}}</td>
												<td ng-show="!cols.contains('non_tax_amount')" class="">{{c.non_tax_amount | number:2}}</td>
												<td ng-show="!cols.contains('maoli')" class="">{{(c.part_sales_amount/1.17-c.part_cost_amount) | number:2}}</td>
												<td ng-show="!cols.contains('part_main_name')" class="">{{c.part_main_name}}</td>
												<td ng-show="!cols.contains('part_model_group_name')" class="">{{c.part_model_group_name}}</td>
												<td ng-show="!cols.contains('ro_status_name')" class="">{{c.ro_status_name}}</td>
												<td ng-show="!cols.contains('ro_type_name')" class="">{{c.ro_type_name}}</td>
												<td ng-show="!cols.contains('profit')" class="">{{c.profit | number:2}}</td>
												<td ng-show="!cols.contains('remark')" class="">{{c.remark}}</td>
											</tr>
		
											<tr class="tbody_last_tr" ng-show="pagination.totalItems > 0">
												<td ng-show="!cols.contains('index')" class=""></td>
												<td ng-show="!cols.contains('entity_code')" class=""></td>
												<td ng-show="!cols.contains('entity_name')" class=""></td>
												<td ng-show="!cols.contains('entity_brand_name')" class=""></td>
												<td ng-show="!cols.contains('group_name')" class=""></td>
												<td ng-show="!cols.contains('storage_name')" class=""></td>
												<td ng-show="!cols.contains('storage_position_code')" class=""></td>
												<td ng-show="!cols.contains('part_no')" class=""></td>
												<td ng-show="!cols.contains('part_name')" class=""></td>
												<td ng-show="!cols.contains('sub_group_name')" class=""></td>
												<td ng-show="!cols.contains('third_group_name')" class=""></td>
												<td ng-show="!cols.contains('fourth_group_name')" class=""></td>
												<td ng-show="!cols.contains('brand_name')" class=""></td>
												<td ng-show="!cols.contains('series_name')" class=""></td>
												<td ng-show="!cols.contains('model_name')" class=""></td>
												<td ng-show="!cols.contains('mileage')" class=""></td>
												<td ng-show="!cols.contains('part_group_name')" class=""></td>
												<td ng-show="!cols.contains('add_tag')" class=""></td>
												<td ng-show="!cols.contains('last_stock_in')" class=""></td>
												<td ng-show="!cols.contains('part_quantity')" class="">{{sum.partNum | number:2}}</td>
												<td ng-show="!cols.contains('stock_quantity')" class=""></td>
												<td ng-show="!cols.contains('part_cost_price')" class=""></td>
												<td ng-show="!cols.contains('part_cost_amount')" class="">{{sum.partCostAmount | number:2}}</td>
												<td ng-show="!cols.contains('part_sales_price')" class=""></td>
												<td ng-show="!cols.contains('part_sales_amount')" class="">{{sum.partSaleAmount | number:2}}</td>
												<td ng-show="!cols.contains('non_tax_amount')" class=""></td>
												<td ng-show="!cols.contains('maoli')" class="">{{(sum.partSaleAmount /1.17- sum.partCostAmount) | number:2}}</td>
												<td ng-show="!cols.contains('part_main_name')" class=""></td>
												<td ng-show="!cols.contains('part_model_group_name')" class=""></td>
												<td ng-show="!cols.contains('ro_status_name')" class=""></td>
												<td ng-show="!cols.contains('ro_type_name')" class=""></td>
												<td ng-show="!cols.contains('profit')" class="">{{sum.partSaleAmount ==0?"0.00":((sum.partSaleAmount /1.17-sum.partCostAmount)/(sum.partSaleAmount /1.17)) | number:2}}</td>
												<td ng-show="!cols.contains('remark')" class=""></td>
											</tr>
										</tbody>
									</table>
									<div class="no-items" ng-show="pagination.totalItems <= 0">暂无数据</div>
								</div>
								<tm-pagination conf="pagination"></tm-pagination>
							</div>
						</section>
						<!--表格显示区域-->
			</div>
		</div>
	</div>
</div>

<form id="export_form" action="deliverStorage/export"  method="post" onclick="tips()">
	<input type="hidden" name="keys" id="keys" />
	<input type="hidden" name="names" id="names" /> 
	<input type="hidden" name="params" id="params" />
	<input type="hidden" name="search_opt" id="search_opt" /> 
	<input type="hidden" name="file_name" id="file_name" value="维修发料统计(按仓库合并)"/>
</form>



